class Border {
    short aPosX, aPosY, bPosX, bPosY;
    byte angle, side, type;
    Border(int a, int b, byte angle, byte side, byte type) {
        aPosX = (short)((a << 1) >> 17);
        aPosY = (short)(a & 0x0000FFFF);
        bPosX = (short)((b << 1) >> 17);
        bPosY = (short)(b & 0x0000FFFF);
        this.angle = angle;
        this.side = side;
        this.type = type;
    }
}